<%@page contentType="text/html; utf-8" language="java" %>
<html>
<body>
<h2>Hello World!</h2>
<button>ajax list</button>
<div></div>

<script src="js/jquery-3.1.1.js"></script>
<script>
    $('button').click(function(){
        $.ajax({
            url:"mavenServlet",
            method:"post",
            dataType:"json",
            success:function(resultData){
                $.each(resultData,function(index,json){
                    $('div').append("<p>"+json.eno+"--"+json.ename+"--"+json.phone+"</p>")
                })
            }
        })
    })
</script>
</body>
</html>
